package com.woniu.woniuticket.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.woniuticket.dao.MovieMapper;
import com.woniu.woniuticket.entity.Movie;
import com.woniu.woniuticket.service.IMovieService;

import org.apache.ibatis.annotations.Param;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lucas
 * @since 2020-02-18
 */
@Service("movieService")
public class MovieServiceImpl extends ServiceImpl<MovieMapper, Movie> implements IMovieService {


    @Resource
    private MovieMapper movieMapper;

    @Override
    public List<Movie> findAll() {

        List<Movie> movie=movieMapper.findAll();

        return movie;

    }

    @Override
    public List<Movie>  findInfoById(Integer movieId) {


        return movieMapper.findInfoById(movieId);
    }

    @Override
    public List<Movie> findtime(Integer movieId) {

        List<Movie> movie=movieMapper.findtime(movieId);

        return movie;


    }

//    @Override
//    public List<Movie> findtime() {
//
//        List<Movie> movie=movieMapper.findtime();
//
//        return movie;
//
//
//    }

    @Override
    public List<Movie> findalltime(Integer movieId) {

        List<Movie> movie=movieMapper.findalltime(movieId);

        return movie;


    }
}
